package com.cloud.cmt.cmtsso.entity;

import com.cloud.cmt.cmtsso.base.BaseEntity;
import lombok.Data;

import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;

/**
 * User: wcy
 * Date: 2017/9/8
 * Time: 11:32
 */
@Data
public class Permission extends BaseEntity{

    private String permissionname;

    @ManyToOne
    @JoinColumn(name = "role_id")
    private Role role;// 一个权限对应一个角色
}
